
// HomeView的接口
export interface ShareListDetailType {
    audio: string,
    desc: string,
    imgUrl: string,
    link: string,
    title: string
}

export interface ShareListType {
    qq: ShareListDetailType,
    weibo: ShareListDetailType,
    wx: ShareListDetailType,
    wx_timeline: ShareListDetailType,
    share_url: string
}

export interface HomeDeatilType {
    id: string
    // 文章分类    
    category: string
    // 文章详细内容id  
    item_id: string
    title: string,
    img_url: string,
    forward: string,
    words_info: string,
    pic_info: string,
    author: AuthorDetail,
    volume: string,
    like_count: number,
    post_date: string,
    share_list: ShareListType
}

export interface AuthorDetail {
    desc: string,
    fans_total: string,
    summary: string,
    user_id: string,
    user_name: string,
    web_url: string,
    wb_name: string
}

export interface WeatherType {
    city_name: string
    climate: string
    date: string
    humidity: string
    hurricane: string
    temperature: string
    wind_direction: string
}

export interface HomeDateDetailType {
    content_list: Array<HomeDeatilType>
    date: string
    weather: WeatherType,
}

export interface HomeDateType {
    data: HomeDateDetailType
}

export type objNumber = Record<string, string>
export type HomeDeatilArrType = Array<HomeDeatilType>

// HomeView的接口

// MonthArticlesView的接口
export interface MonthArticlesType {
    id: number,
    date: string,
    cover: string
}

export interface MonthArticlesDataType {
    data: Array<MonthArticlesType>
}

export type MonthArrType = Array<MonthArticlesType>;

// MonthArticlesView的接口

// hp/bydate的接口

export interface HpByDataType {
    data: HomeDeatilType
}

// hp/bydate的接口

// ArticleDetail的接口
export interface ContentJson {
    content: string,
    copyright: string,
    editor: string,
    simple_author: Array<string>,
}

export interface ArticleDetailDataType {
    title: string,
    anchor: string,
    audio: string,
    author_list: Array<AuthorDetail>;
    id: string,
    json_content: ContentJson,
    home_image: string
}

export interface ArticleDetailType {
    data: ArticleDetailDataType
    res: number
}
// ArticleDetail的接口

// Comment接口
export interface CommentUserType {
    user_id: string
    user_name: string
    web_url: string
}

export interface CommentDetailDataType {
    content: string
    created_at: string
    user: CommentUserType
    praisenum: number
}

export interface CommentDetailType {
    data: Array<CommentDetailDataType>
    count: number
}

export interface CommentType {
    data: CommentDetailType
}
// Comment接口

// SearchView接口
export interface SearchDetailDataType {
    category: number
    content_id: number
    cover: string,
    title: string,
    subtitle: string
}

export interface SearchDetailType {
    data: {
        list: Array<SearchDetailDataType>
    }
}

export interface HotAuthorDetailType {
    data: Array<AuthorDetail>
}
// SearchView接口

// Serialize 连载的接口
export interface SerializeDetailDataType {
    category: number,
    cover: string,
    title: string,
    subtitle: string,
    finished: string,
    forward: string,
    id: number,
    maketime: string,
    serial_id: number
}

export interface SerializeDetailType {
    data: Array<SerializeDetailDataType>
}

export interface SerializeBookDetailDataType {
    category: number,
    cover: string,
    title: string,
    subtitle: string,
    maketime: string,
    number: number
    id: number,
    serial_list: Array<number>,
    serial_id: number
}

export interface SerializeBookDetailType {
    data: Array<SerializeBookDetailDataType>
}
// Serialize 连载的接口

// discover 的接口
export interface DiscoverArticleDataType {
    category: number,
    cover: string,
    title: string,
    subtitle: string,
    maketime: string
    id: number,
    share_list: ShareListType,
    audio_url: string,
    author: AuthorDetail,
    like_count: number,
    volume: string
}

export interface DiscoverArticleType {
    data: Array<DiscoverArticleDataType>
}

export type DiscoverAllArticleType = Array<DiscoverArticleDataType>;

export interface DiscoverContentsType {
    category: number,
    cover: string,
    title: string,
    subtitle: string,
    maketime: string
    id: number,
    weight: number
}

export interface DiscoverListDataType {
    contents: Array<HomeDeatilType>
    title: string,
    img_url: string,
    id: number
}

export interface DiscoverListType {
    data: Array<DiscoverListDataType>
}

export interface DiscoverSpecialDataType {
    title: string,
    cover: string,
    id: number,
    is_stick: boolean,
    content_id: string
}

export interface DiscoverSpecialType {
    data: Array<DiscoverSpecialDataType>
}

export interface SubtotalUserType {
    user_id: string,
    user_name: string,
    web_url: string
}

export interface DiscoverSubtotalDataType {
    addr: string,
    content: string,
    diary_id: string,
    id: string,
    img_url: string,
    img_url_thumb: string,
    input_date: string,
    is_public: string,
    picture: string,
    praisenum: number,
    remark: string,
    reviewed: string,
    user_id: string,
    user: SubtotalUserType,
    weather: string,
}

export interface DiscoverSubtotalType {
    list: Array<DiscoverSubtotalDataType>
}

export interface SubtotalType {
    data: DiscoverSubtotalType
}

export interface DiscoverAuthorDetailType {
    author: AuthorDetail,
    forward: string,
    id: string,
    img_url: string,
    post_date: string,
    title: string,
    category: string,
    like_count: number,
    share_list: ShareListType,
    item_id: string
}

export interface DiscoverAuthorType {
    data: Array<DiscoverAuthorDetailType>
}

// discover 的接口

// userSetting 
export interface UserSettingDetailType {
    text: string,
    type: number,
    checked?: boolean
}

export interface UserSettingType {
    title: string,
    arr: Array<UserSettingDetailType>
}

// userSetting 

// LocalStore 的接口
export interface ArticleStoreType {
    id: string,
    category: string,
    title: string,
    subTitle: string,
    img_url?: string
}

export type LocalStoreArrType = Array<HomeDeatilType>
export type LocalArticleStoreArrType = Array<ArticleStoreType>
export type LocalAuthorStoreArrType = Array<AuthorDetail>
// LocalStore 的接口

// UserLocalStore 的接口
export interface UserStoreDataType {
    phone: string,
    password: string,
    userName?: string
}

export type UserStoreArrType = Array<UserStoreDataType>
// UserStore 的接口